from django.urls import path
from .views import (providers_api, get_provider_api, provider_bulk_delete, MyTokenObtainPairView, provider_me,
                    create_password_confirm, provider_bookings_api, user_list, user_detail, manage_service_accounts,
                    manage_service_accounts_id,
                    provider_room_api, retrieve_invoice_client, create_ethera_credit, bulk_create_ethera_credit,
                    create_promo_credit,
                    bulk_create_promo_credit, reset_password_link, reset_password_confirm_link, user_image_change_api,
                    user_image_delete_api, user_image_api)

app_name = 'users'

urlpatterns = [
    path('login', MyTokenObtainPairView.as_view()),
    path('users', user_list, name='user_list'),
    path('users/<str:user_id>', user_detail, name='user_list'),
    path('reset-password', reset_password_link, name='reset_password'),
    path('reset-password-confirm', reset_password_confirm_link, name='reset_password_confirm_link'),
    path('providers', providers_api, name='providers_api'),
    path('providers/bulk-delete', provider_bulk_delete, name='provider_bulk_delete'),
    path('providers/me', provider_me, name='provider_me'),
    path('providers/<str:provider_id>', get_provider_api, name='get_provider'),
    path('create-password-confirm', create_password_confirm, name='create_password_confirm'),
    path('provider-booking', provider_bookings_api, name='provider_bookings_api'),
    path('service', manage_service_accounts, name='manage_service_accounts'),
    path('service/<str:user_id>', manage_service_accounts_id, name='manage_service_accounts_id'),
    path('provider-room', provider_room_api, name='provider_room_api'),
    path('providers/<str:provider_pk>/ethera-credit', create_ethera_credit, name='create_ethera_credit'),
    path('providers/<str:provider_pk>/promo-credit', create_promo_credit, name='create_ethera_credit'),
    path('ethera-credit/bulk-create', bulk_create_ethera_credit, name='bulk_create_ethera-credit'),
    path('promo-credit/bulk-create', bulk_create_promo_credit, name='bulk_create_ethera-credit'),
    path('provider-room', provider_room_api, name='provider_room_api'),
    path(r'invoice-client/<str:pk>', retrieve_invoice_client, name='invoice-client-detail'),
    path('users/<str:user_pk>/image', user_image_api, name='users-image'),
    path('users/<str:user_pk>/image/change', user_image_change_api, name='users-image'),
    path('users/<str:user_pk>/image/delete', user_image_delete_api, name='users-image'),

]
